﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace Windvoice.Blog
{
    [ActiveRecord("Category")]
    public partial class Category : ActiveRecordBase<Category>
    {
        [PrimaryKey(PrimaryKeyType.Identity,"ID")]
        public int ID
        {
            get;
            set;
        }

        [Display(Name="分类名称")]
        [Required]
        [Property]
        public string Name
        {
            get;
            set;
        }

        [Display(Name = "唯一标识")]
        [Required]
        [Property]
        public string UniqueKey
        {
            get;
            set;
        }

        [Display(Name = "简介")]
        [Property]
        public string Description
        {
            get;
            set;
        }
    }
}
